{% extends 'BlogBundle::layout.html.twig' %}
{% block content %}
<section>
		<ul>
			{% for post in posts %}
			<li>
				<a href="{{ path('blog_post',{'path':post.category.path,'pid': post.id}) }}">{{ post.title }}</a>
				<br />
				<small><strong>最后更新:</strong>({{ post.published.format('d.M.Y H:i:s') }})</small>
				<p>{{ post.content|slice(0, 100) ~ '...' }}</p>
			</li>
			{% endfor %}
		</ul>
	</section>
	<div class="pagerfanta">
    <div class="navigation">
    {{ knp_pagination_render(posts) }}
</div>
</div>
{% endblock %}